package com.topisv.tms.repository;


import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.WaCountPlan;

public interface WaCountPlanDao extends PagingAndSortingRepository<WaCountPlan, Long>, JpaSpecificationExecutor<WaCountPlan>{
	
	
	@Query("SELECT a FROM WaCountPlan a ORDER BY a.countDate DESC LIMIT 0,1")
	List<WaCountPlan> findExecuteRecord();
	
	WaCountPlan findByCountDate(String countDate);
}
